import request from '@/utils/request'

//获取入驻列表
export function getCompanyList(data) {
  return request({
    url: '/company/queryCompanyList',
    method: 'get',
    params: data
  })
}

// 通过id获取详情
export function getCompanyById(id) {
  return request({
    url: '/company/findCompanyById?id=' + id,
    method: 'get'
  })
}


//审核通过

export function findApprovedById(id, obj) {
  return request({
    url: '/company/findApprovedById?id=' + id + "&status=" + obj,
    method: 'get'
  })
}


//获取企业变更申请列表
export function getCompanyChangeInfoList(data) {
  return request({
    url: '/companyChangeInfo/queryCompanyList',
    method: 'get',
    params: data
  })
}

// 通过id获取详情
export function getCompanyChangeInfoById(id) {
  return request({
    url: '/company/findCompanyChangeInfoById?id=' + id,
    method: 'get'
  })
}
// 审核通过变更信息
export function getreview(id) {
  return request({
    url: '/companyChangeInfo/review?id=' + id,
    method: 'get'
  })
}